$(function(){
	var $this = $(this);
	var $modal_dialog = $this.find('.main');
	var m_top = ( $(window).height() - $modal_dialog.height() )/2;
    $modal_dialog.css({'margin': m_top + 'px auto'});
});